package com.springcloud.sc.ucpv5.client.commondata.idl.sj3;


/**
 * Generated from IDL struct "RoleInfo".
 *
 * @author JacORB IDL compiler V 2.3-beta-2, 14-Oct-2006
 * @version generated at 2014-10-29 11:48:54
 */

public final class RoleInfoHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(com.springcloud.sc.ucpv5.client.commondata.idl.sj3.RoleInfoHelper.id(),"RoleInfo",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("id", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("type", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("parentId", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("nodeNumber", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("name", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("desc", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("buildTime", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("modifyTime", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("rightparamlist", com.springcloud.sc.ucpv5.client.commondata.idl.sj3.RoleRightParamListHelper.type(), null),new org.omg.CORBA.StructMember("userparamlist", com.springcloud.sc.ucpv5.client.commondata.idl.sj3.RoleUserParamListHelper.type(), null),new org.omg.CORBA.StructMember("keep1", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep2", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep3", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep4", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep5", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep6", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep7", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep8", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep9", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep10", org.omg.CORBA.ORB.init().create_string_tc(0), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.RoleInfo s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.RoleInfo extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:com/client/idl/sj3/RoleInfo:1.0";
	}
	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.RoleInfo read (final org.omg.CORBA.portable.InputStream in)
	{
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.RoleInfo result = new com.springcloud.sc.ucpv5.client.commondata.idl.sj3.RoleInfo();
		result.id=in.read_long();
		result.type=in.read_long();
		result.parentId=in.read_long();
		result.nodeNumber=in.read_string();
		result.name=in.read_string();
		result.desc=in.read_string();
		result.buildTime=in.read_string();
		result.modifyTime=in.read_string();
		result.rightparamlist = com.springcloud.sc.ucpv5.client.commondata.idl.sj3.RoleRightParamListHelper.read(in);
		result.userparamlist = com.springcloud.sc.ucpv5.client.commondata.idl.sj3.RoleUserParamListHelper.read(in);
		result.keep1=in.read_string();
		result.keep2=in.read_string();
		result.keep3=in.read_string();
		result.keep4=in.read_string();
		result.keep5=in.read_string();
		result.keep6=in.read_string();
		result.keep7=in.read_string();
		result.keep8=in.read_string();
		result.keep9=in.read_string();
		result.keep10=in.read_string();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.RoleInfo s)
	{
		out.write_long(s.id);
		out.write_long(s.type);
		out.write_long(s.parentId);
		out.write_string(s.nodeNumber);
		out.write_string(s.name);
		out.write_string(s.desc);
		out.write_string(s.buildTime);
		out.write_string(s.modifyTime);
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.RoleRightParamListHelper.write(out,s.rightparamlist);
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.RoleUserParamListHelper.write(out,s.userparamlist);
		out.write_string(s.keep1);
		out.write_string(s.keep2);
		out.write_string(s.keep3);
		out.write_string(s.keep4);
		out.write_string(s.keep5);
		out.write_string(s.keep6);
		out.write_string(s.keep7);
		out.write_string(s.keep8);
		out.write_string(s.keep9);
		out.write_string(s.keep10);
	}
}
